export default function storage(key) {
  return {
    set(value) {
      return sessionStorage.setItem(key, value);
    },
    get() {
      return sessionStorage.getItem(key);
    },
    remove() {
      return sessionStorage.removeItem(key);
    }
  }
}
